package com.endbd.feignapi.model.warehouse;
import java.util.Date;

import com.endbd.feignapi.model.system.City;
import com.endbd.feignapi.model.system.Province;
import com.endbd.feignapi.model.system.User;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString


public class Warehouse {

  private Integer id;
  @JsonProperty("cName")
  private String cName;
  @JsonProperty("cAddress")
  private String cAddress;
  private Integer provinceId;   private Province province;
  private Integer userId;       private User user;
  private String phone;
  private String details;
  private String state;
  private Integer usersId;      private User creator;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date creationTime;
  private Integer cityId;       private City city;
  @JsonProperty("wMoney")
  private Double wMoney;
}
